import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:diameter',
      order: 40,
      title: '圈子',
    },
    name: 'Forum',
    path: '/forum',
    children: [
      {
        name: 'ForumConfig',
        path: '/forum/config',
        component: () => import('#/views/forum/config/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '圈子配置',
        },
      },
      {
        name: 'ForumPost',
        path: '/forum/post',
        component: () => import('#/views/forum/post/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '内容管理',
        },
      },
      {
        name: 'ForumComment',
        path: '/forum/comment',
        component: () => import('#/views/forum/comment/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '评论管理',
        },
      },
      {
        name: 'ForumReply',
        path: '/forum/reply',
        component: () => import('#/views/forum/reply/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '回复管理',
        },
      },
      // {
      //   name: 'ForumPushRecord',
      //   path: '/forum/push-record',
      //   component: () => import('#/views/forum/push-record/index.vue'),
      //   meta: {
      //     icon: 'lucide:area-chart',
      //     title: '群聊推送记录',
      //   },
      // },
    ],
  },
];

export default routes;
